module main;

import hunt.console;
import command.StartAppCommand;
import std.process;
import core.thread;
import std.stdio;

void main(string []args)
{ 
   uint waitTime = 5;

    // 等待 LogicServer 初始化完毕再启动
    writeln("Waiting LogicServer ", waitTime, " seconds...");
    Thread.sleep(waitTime.seconds);

        std.stdio.stdout.flush();

    Console app = new Console("Msg Service", "1.0.0");

    app.setAutoExit(false);
    app.add(new StartAppCommand());

    app.run(args);
}
